﻿<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    xmlns:msmfc="clr-namespace:Microsoft.SilverlightMediaFramework.Core;assembly=Microsoft.SilverlightMediaFramework.Core"
    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity" 
    xmlns:mwab="clr-namespace:Microsoft.WebAnalytics.Behaviors;assembly=Microsoft.WebAnalytics.Behaviors" 
    xmlns:ic="clr-namespace:Microsoft.Expression.Interactivity.Core;assembly=Microsoft.Expression.Interactions" 
    xmlns:mwmss="clr-namespace:Microsoft.Web.Media.SmoothStreaming;assembly=Microsoft.Web.Media.SmoothStreaming" 
    xmlns:mwad="clr-namespace:Microsoft.WebAnalytics.Data;assembly=Microsoft.WebAnalytics" 
    xmlns:mwadz="clr-namespace:Microsoft.WebAnalytics.Media;assembly=Microsoft.WebAnalytics.DeepZoom" 
    mc:Ignorable="d" 
    x:Class="Demo.MainPage"
    d:DesignWidth="640" d:DesignHeight="480">
    <Grid x:Name="LayoutRoot" Background="#FF1C1F61">
    	<VisualStateManager.VisualStateGroups>
    		<VisualStateGroup x:Name="Analytics">
    			<VisualState x:Name="A"/>
    			<VisualState x:Name="B"/>
    		</VisualStateGroup>
    	</VisualStateManager.VisualStateGroups>
    	<i:Interaction.Triggers>
    		<i:EventTrigger SourceName="button" EventName="Click">
    			<mwab:TrackForm Category="abc"/>
    		</i:EventTrigger>
    	</i:Interaction.Triggers>
    	<i:Interaction.Behaviors>
            <!--<mwab:ServiceOrientedAnalytics AccountId="1234" Endpoint="http://www.charette.com"/>-->
            <mwab:Pulse/>
            <mwab:ABTesting PercentageOfTraffic="1" DefaultState="A" StateGroup="Analytics"/>
            <mwab:ServiceOrientedAnalytics AccountId="" Endpoint="http://azureanalytics.cloudapp.net"/>
            <mwab:ConsoleAnalytics/>
    	</i:Interaction.Behaviors>
    	<Button x:Name="button" Height="56" HorizontalAlignment="Left" Margin="8,0,0,8" VerticalAlignment="Bottom" Width="122" Content="Button"/>
    	<TextBox Height="24" Margin="260,0,258,40" VerticalAlignment="Bottom" Text="TextBox" TextWrapping="Wrap">
    		<i:Interaction.Behaviors>
    			<mwab:TrackFormControl/>
    		</i:Interaction.Behaviors>
    	</TextBox>
    	<TextBox Margin="260,0,258,8" Text="TextBox" TextWrapping="Wrap" Height="28" VerticalAlignment="Bottom">
    		<i:Interaction.Behaviors>
    			<mwab:TrackFormControl/>
    		</i:Interaction.Behaviors>
    	</TextBox>
    	<ListBox Height="56" HorizontalAlignment="Left" Margin="134,0,0,8" VerticalAlignment="Bottom" Width="122">
    		<i:Interaction.Behaviors>
    			<mwab:TrackFormControl/>
    		</i:Interaction.Behaviors>
    		<ListBoxItem Content="ListBoxItem"/>
    		<ListBoxItem Content="ListBoxItem"/>
    	</ListBox>
    	<MultiScaleImage x:Name="DeepZoom" HorizontalAlignment="Right" Margin="0,47,8,192" Width="204">
    		<i:Interaction.Behaviors>
    			<mwadz:TrackMultiScaleImage/>
    		</i:Interaction.Behaviors>
    	</MultiScaleImage>
    	<TextBlock HorizontalAlignment="Right" Height="39" Margin="0,8,27,0" TextWrapping="Wrap" Text="Deep Zoom MultiScaleImage" VerticalAlignment="Top" Width="174"/>
    </Grid>
</UserControl>
